package qa.tests.mock;

import java.util.Arrays;
import java.util.List;

/**
 * Just a class that is used in the test methods to see if cobertura still works.
 */
public class App {
    public void method1() {
        List<String> strings = Arrays.asList("hello", "bye");
        for (String string : strings) {
            if(string.length() < 0) {
                throw new RuntimeException("impossible");
            }
        }
    }
    public String method2(int x) {
        switch (x) {
        case 1:
            return "1";

        default:
            return "0";
        }
    }
}
